package com.example.onlyoffice;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author alexzshl
 * @since 2022/2/16 23:44
 */
@Data
@NoArgsConstructor
public class OnlyOfficeResponse {
    private Integer error;

    public OnlyOfficeResponse(Integer error) {
        this.error = error;
    }

    public static OnlyOfficeResponse OK() {
        return new OnlyOfficeResponse(0);
    }

    public static OnlyOfficeResponse ERROR() {
        return new OnlyOfficeResponse(-1);
    }
}
